package com.azxc.rapid.plus.system.excel;

import com.azxc.rapid.core.excel.support.ExcelImporter;
import com.azxc.rapid.plus.system.service.IAppRoleMenuService;
import lombok.RequiredArgsConstructor;

import java.util.List;

/**
 * 数据导入类
 */
@RequiredArgsConstructor
public class AppRoleMenuImporter implements ExcelImporter<AppRoleMenuExcel> {

	private final IAppRoleMenuService appRoleMenuService;
	private final Boolean isCovered;

	@Override
	public void save(List<AppRoleMenuExcel> data) {
		appRoleMenuService.importAppRoleMenu(data, isCovered);
	}
}
